<%@include file="/pub/import.jsp"%>
<%@include file="/pub/header.jsp"%>
<%
    int projectId = RequestUtil.getIntParameter(request,"id",0);
    Project project = ProjectHandler.getProject(projectId);
    List<User> allScoreUser = UserHandler.getScoreUsers();
    
    List<User> scoreUser = UserHandler.getUsersByIds(project.getScoreUser());
    
    List<User> noScoreUserList = new ArrayList<User>();
    for(User u: allScoreUser) {
      boolean isScoreUser = false;
      for(User u2: scoreUser) {
        if(u2.getId()==u.getId()) {
          isScoreUser = true;
        }
      }
      if(!isScoreUser) {
        noScoreUserList.add(u);
      }
    }
    context.put("projectInfo",project);
    context.put("noScoreUserList", noScoreUserList);
    context.put("scoreUserList", scoreUser);
    context.put("DateUtil", new DateUtil());
    out.println(TemplateUtil.getOutput(context,"/view/project/editProjectBasicInfo.html"));
    
%>
<%@include file="/pub/footer.jsp"%>